package produce.bean.util;

import java.util.HashMap;
import java.util.Map;

/**
 * @author cxx
 * @create 2020-04-20 10:33
 **/
public class BeanFactory {

    private static Map<String,Object> beanMap = new HashMap<> ();

    public static void addBean(String beanName,Object o){
        beanMap.put (beanName,o);
    }


    public static Object getBean(String beanName) {
        return beanMap.get (beanName);
    }
}
